#include <54func.h>
#include <string>
#include <iostream>
#include <SimpleAmqpClient/SimpleAmqpClient.h>
using std::string;
using std::cout;
struct MQInfo{
    string Exchange = "exchange_test";
    string RoutingKey = "key1";
};
int main(){
    using namespace AmqpClient;
    MQInfo mqinfo;
    // create为channel申请内存
    Channel::ptr_t channel = Channel::Create();
    // 创建一个消息
    BasicMessage::ptr_t message = BasicMessage::Create("howareyou");
    // 发送消息
    channel->BasicPublish(mqinfo.Exchange,mqinfo.RoutingKey,message);
    return 0;
}

